package lambda.animal;

public class Test {
    public static void main(String[] args) {
        Factory<Animal> dogFactory = Dog::new;
        dogFactory.create("tom", 1).behavior();
        Factory<Animal> catFactory = Cat::new;
        catFactory.create("jaff", 3).behavior();
    }
}
